<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="org.ifilm.model.User,org.ifilm.util.GeneralConstants"%>

<%
	//TEST TO CHECK WHETHER LOGGED USER IS IN OUR SESSION OR NOT
	User loggedUser = (User)session.getAttribute(GeneralConstants.user);
	
	if (loggedUser != null) {
		System.out.println(loggedUser.getEmail());
	} else {
		System.out.println("No user in session!");
	}
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Independent Film Community</title>
	</head>
	
	<body>
		<a href="/film/registerUser.jsp">Register User</a><br/>
		<a href="/film/loginUser.jsp">Login User</a> <a href="" onclick="/film/req/user/logout">Logout</a><br/>
		<a href="/film/createJobPosting.jsp">Create Job Posting</a><br/>
		<a href="/film/req/notice/listJobPostings">List Job Posting</a><br/>
		
		<br/>
		<br/>
		<br/>
		<br/>
		<br/>
		<br/>
		<a href="/film/createFilm.jsp">CreateFilm</a>
		<a href="/film/req/film/listFilms">List Films</a>
	</body>
</html>